package com.deng.nacosprovider.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 邓天天
 * @date 2021/4/5 22:03
 */
@RestController
public class HelloController {
    @Value("${spring.application.name}")
    private String appName;

    @GetMapping("/echoAppName")
    public String echoAppName() {
        return appName;
    }

}
